<template>
  <div class="info-item">
    <div class="item-name">
      {{title}}
    </div>
    <slot />
  </div>
</template>

<script>
export default {
  name: 'InfoItem',
  props: {
    title: {
      type: String,
      default: '标题'
    }
  }
}
</script>

<style lang="scss" scoped>
.info-item {
  margin: 20px 0;
  .item-name {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    font-weight: bold;
    font-size: 18px;
  }
}
</style>
